Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoints for Dexscreener support #422 #446

Merged
merged 8 commits into from
Dec 17, 2024

Conversation

CapCap
Copy link
Contributor

@CapCap CapCap commented Dec 5, 2024

Continuation of #422

Dexscreener API stubs

Dexscreener events cconverion v1

Dexscreener events cconverion v1

refac out of test

Scope out other enddex points

small lints

Event feedback changes

API mapping updates

Add block and event index to API

set fee bps

use reserve calculation from SDK

decimalize outputs

Description

Delete this sentence and add a description that explains what changes you have
done and why they were necessary.

Testing

Delete this sentence and provide a description of how to test the changes in
this PR.

Checklist

  • Did you update relevant documentation?
  • Did you add tests to cover new code or a fixed issue?
  • Did you update the changelog?
  • Did you check all checkboxes from the linked Linear task?

Copy link

vercel bot commented Dec 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:20am
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:20am

Copy link

vercel bot commented Dec 5, 2024

@CapCap is attempting to deploy a commit to the Econia Labs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@xbtmatt xbtmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to quickly review the block and event index stuff- it doesn't have to be implemented the way I suggested in the comments if you have a better idea, but I think it's simple enough

src/typescript/sdk/src/indexer-v2/types/index.ts Outdated Show resolved Hide resolved
src/typescript/sdk/src/indexer-v2/types/json-types.ts Outdated Show resolved Hide resolved
@CapCap CapCap force-pushed the capcap_dexscreener_api_stubs branch 2 times, most recently from baff241 to b5de629 Compare December 6, 2024 00:27
@CapCap CapCap force-pushed the capcap_dexscreener_api_stubs branch from 729df2f to 6cc3c00 Compare December 6, 2024 22:33
@CapCap CapCap force-pushed the capcap_dexscreener_api_stubs branch from 6cc3c00 to 6a02e74 Compare December 7, 2024 00:16
Copy link
Collaborator

@xbtmatt xbtmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted how to use calculateCurvePrice to get the value of priceNative

Main thing to note is that it always returns the price in quote / base aka APT / emojicoin, which is what the comments you wrote seem to suggest Dexscreener expects...but just noting here that it doesn't change.

If asset0 and asset1 are always base / quote respectively, then this should be fine

src/typescript/frontend/src/app/dexscreener/events.ts Outdated Show resolved Hide resolved
CapCap and others added 7 commits December 14, 2024 14:20
Dexscreener events cconverion v1

Dexscreener events cconverion v1

refac out of test

Scope out other enddex points

small lints

Event feedback changes

API mapping updates

Add block and event index to API

set fee bps

use reserve calculation from SDK

decimalize outputs

fake block and event index

add tests, ensure ID stability

lint

format
Copy link
Collaborator

@xbtmatt xbtmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good to go now format/lint-wise, the only thing I noticed is that the types in the notion doc are actually different from the types in the dexscreener website API.

Specifically one thing is the lack of priceNative in the dexscreener repo API, but it's in the notion doc.

Is the notion doc more accurate/a more specific version you made with them? Just want to clarify before merging

@xbtmatt xbtmatt changed the title [WIP] Add endpoints for Dexscreener support #422 Add endpoints for Dexscreener support #422 Dec 17, 2024
@xbtmatt xbtmatt merged commit 91e9dc7 into econia-labs:main Dec 17, 2024
7 checks passed
xbtmatt added a commit that referenced this pull request Dec 17, 2024
Co-authored-by: Matt <90358481+xbtmatt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants